/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package east2west.service;

import east2west.dao.LocationDAO;
import east2west.dao.SchedulesDAO;
import east2west.dto.LocationDTO;
import java.util.ArrayList;

/**
 *
 * @author nguyendat
 */
public class LocationService {

    SchedulesDAO schedulesdao = new SchedulesDAO();
    LocationDAO locationdao= new LocationDAO();
    public ArrayList<LocationDTO> listLocationAll(int id){
        return schedulesdao.findSchedulesByTourId(id);
    }
    public ArrayList<LocationDTO> readBySAll(){
        return locationdao.readSByAll();
    }
}
